import os
import time

import pytest
import zmail

if __name__ == '__main__':
    pytest.main()
    os.system('allure generate ./result-luotong -o ./report-luotong --clean')
    # mail_content = {
    #     "subject": "测试报告{}-骆通".format(time.strftime('%Y-%m-%d %H:%M:%S')),
    #     "content_text": "加减乘除的测试",
    #     "attachments": r"./report-luotong/index.html"
    # }
    # server = zmail.server("460324540@qq.com", "temjyqxaylsxbhef")
    # server.send_mail(["460324540@qq.com"], mail_content)